package com.lcxw.hxzbapi.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbapi.dao.mapper.VipLevelMapper;
import com.lcxw.hxzbapi.entity.pojo.VipLevel;

@Component
public class VipLevelService {

    @Resource
    VipLevelMapper vipLevelMapper;

    public int deleteByPrimaryKey(Integer id){
        return vipLevelMapper.deleteByPrimaryKey(id);
    }

    public int insert(VipLevel record){
        return vipLevelMapper.insert(record);
    }

    public VipLevel selectByPrimaryKey(int id){
        return vipLevelMapper.selectByPrimaryKey(id);
    }

    public List<VipLevel> selectAll(){
        return vipLevelMapper.selectAll();
    }

    public int updateById(VipLevel vipLevel){
        return vipLevelMapper.updateByPrimaryKey(vipLevel);
    }
}
